﻿<%template _header%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>
<!--header end-->

<!--主体-->

<div class="layout-cols2">
<div class="col1" style ="width:70%">
		<div class="box">
			<div class="caption"><%template _memgroupmenu%>	</div>
			<div class="content">

				<div class="pannelbody">
					<div class="messagelist">
					<%if ErrorCount==0%>
					
						<%if IsPost%>
						
							<%template _msgbox%>
							
						<%else%>
						
						
            <label>我创建的圈子({GroupListCreat.Count}个)</lable>
							<form action="" method="post" ID="form1">
								<input type="hidden" id="formid" name="formid" value="1" />
								<input type="hidden" id="typeid" name="typeid" value="1" />
								<input type="hidden" id="groupid" name="groupid" value="0" />
						
							<table width ="100%">
								<tbody><tr>
									<td width="110">头像</td>
									<td width="120">名称</td>
									<td width="60">帖子数</td>
									<td width="60">回复数</td>
									<td width="60">浏览数</td>
									<td width="60">成员数</td>
									<td width="60">管理</td>
									<td width="60">退出</td>
									<td></td> 
								</tr></tbody>
									</table>
							<div  style="position:relative;overflow:auto;overflow-x:hidden;overflow-y:scroll; height:150;">	
							<table>
								<%csharp%> foreach(GroupInfo info in GroupListCreat) { <%/csharp%>
								<tbody>
							  <tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">
							  	<td width="110"><img src="{info.Logo}" width="48" height="48" id="usingavatarimg"  class ="photoimg" alt="头像"/></td>
							    <td  width="120">{info.GroupName}</td>
							    <td width="60">{info.TopicNum}</td>
							    <td width="60">{info.ReplyNum}</td>
							    <td width="60">{info.Hits}</td>
							    <td width="60">{info.UserNum}</td>
							    <td width="60"><a href="Setting.aspx?gid={info.Id}" class="selectall">管理</a></td>
							    <td width="60"><a href="#" onclick="$('typeid').value=1;$('groupid').value={info.Id};$('form1').submit();" class="selectall">退出</a>
							    <td></td>
							</tr>
							</tbody>
								<%csharp%> } <%/csharp%>
							</table>
								</div>
							 
							
							</form>
						
							<br />
							<br />
						
            <label>我加入的圈子({GroupListJoin.Count}个)</label>
							<form action="" method="post" ID="form2">
								<input type="hidden" id="formid2" name="formid" value="2" />
								<input type="hidden" id="typeid2" name="typeid" value="1" />
								<input type="hidden" id="groupid2" name="groupid" value="0" />
	
							<table width ="100%">
								<tbody><tr>
									<td width="110">头像</td>
									<td width="120">名称</td>
									<td width="60">帖子数</td>
									<td width="60">回复数</td>
									<td width="60">浏览数</td>
									<td width="60">成员数</td>
									<td width="60">管理</td>
									<td width="60">退出</td>
									<td></td> 
								</tr></tbody>
								</table>
						<div  style="position:relative;overflow:auto;overflow-x:hidden;overflow-y:scroll;">	
							<table>
								<%csharp%> foreach(GroupInfo info in GroupListJoin) { <%/csharp%>
								<tbody>
							  <tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">
							  	<td width="110"><img src="{info.Logo}" width="48" height="48" id="usingavatarimg" alt="头像"/></td>
							    <td width="120">{info.GroupName}</td>
							    <td width="60">{info.TopicNum}</td>
							    <td width="60">{info.ReplyNum}</td>
							    <td width="60">{info.Hits}</td>
							    <td width="60">{info.UserNum}</td>
							    <td width="60"><%csharp%>if(info.Role == Constants.RoleAdmin) {<%/csharp%>
							    	<a href="Setting.aspx?gid={info.Id}" class="selectall">管理</a>
							    	<%csharp%>}<%/csharp%>
							    </td>
							    <td width="60"><a href="#" onclick="$('typeid2').value=1;$('groupid2').value={info.Id};$('form2').submit();" class="selectall">退出</a></td>
							    <td></td>
							</tr>
							</tbody>
								<%csharp%> } <%/csharp%>
							</table>	 
							</div>
								
							</form>
					
						<%/if%>
						
						</div>
						
					<%else%>
						<%template _memerrmsgbox%>
					<%/if%>
					
			  </div>
			</div>
		</div>
	</div>
	
		<div class="col2">
	    
	    <%template _UserMenu%>
	
	    <%template _PatientMenu%>
	    <%template _GroupMenu%>
	    <%template _MessageMenu%>
	
	</div>
</div>
<!--主体-->

<%template _footer%>
